package com.board.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加公告参数对象")
public class AddNoticeForm {
    @ApiModelProperty("公告内容")
    @NotNull(message = "公告内容不能为空")
    private String noticeComent;
    @ApiModelProperty("公告标题")
    @NotNull(message = "公告标题不能为空")
    private String noticeTitle;
}
